package com.st.buy.manager.controller;

import com.st.buy.manager.service.ItemService;
import com.st.buy.pojo.TbItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 徐阳顺
 * @create 2021-04-17 16:21
 */
@Controller
public class ItemController {
    @Autowired
    private ItemService itemService;
    @RequestMapping(value = "/queryById",produces = "application/json;charset=utf-8")
    @ResponseBody
    public TbItem queryById(long itemId){
        return itemService.queryById(itemId);
    }
}
